<?php global $post;	?>



<ul id="slider">

		<?php query_posts( 'cat='.$wc_slider_category.'&posts_per_page=4' ); if( have_posts() ) : while( have_posts() ) : the_post(); ?>

		<li>

			<div id="left">

				<?php 

				//This must be in one loop

				if(has_post_thumbnail()) { ?>

				

				<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

					<?php the_post_thumbnail( 'featured');     ?>	</a>

					

				<?php } else { ?>

					<div class="no-thumb"><h2>No thumbnail for this :D</h2><h3>wrapcode</h3></div>

				<?php }

				?>

			</div>

			<div id="right">

				<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

					<h2>

					<?php $short_title = substr(the_title('','',FALSE),0,35);

					echo $short_title; if (strlen($short_title) >34){ echo '...'; } ?>	

					</h2></a>

				<p>

				<?php 

					$content = get_the_content();

					$content = strip_tags($content);

					echo substr($content, 0, 200). '...';

				?>				

				</p>

				<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><div class="bx-more"><span>Read Article</span></div></a>

							

			</div>

		</li>

		<?php endwhile; endif;?>

		<?php wp_reset_query();?>	

</ul>

		